package org.fastiot.gateway.client

import org.apache.camel.Exchange
import org.fastiot.gateway.Message

class MessageProcessor {

    void encode(Exchange exchange) {
        def msg = exchange.in.getBody(Message)
        println "encode:${msg.contents.encodeHex()},:$msg.properties"
        exchange.in.setBody(msg.contents, Byte[])
    }
}
